/**
 * Created by Administrator on 2017/4/18 0018.
 */
LazyPic=function(picName,getX,getY,duration,delay,xx,yy,sc1,sc2){
        var pic=PSP(picName);
        pic.anchor.set(0.5)
        getX=getX+pic.width/2;getY=getY+pic.height/2;
        pic.x=getX;pic.y=getY;
        pic.alpha=0;

        pic.tm=function(){
            TweenMax.killTweensOf(pic);
            pic.alpha=0;
            pic.x=getX+xx;
            pic.y=getY+yy;
            TweenMax.to(pic,duration,{delay:delay,alpha:1,x:getX,y:getY,ease:Cubic.easeOut});

            if(sc1!=1) {
                pic.scale.set(sc1);
                TweenMax.to(pic.scale, duration, {delay: delay, x: sc2, y: sc2, ease: Cubic.easeOut});
            }
        }

        return pic;

}